package com.gavin.lingxi.common.utils;

import org.webrtc.PeerConnection;

import java.util.ArrayList;
import java.util.List;

/**
 * 网络环境切换
 */

public class NetSwitchoverUtil {
    public static List<PeerConnection.IceServer> getIceServer() {
        List<PeerConnection.IceServer> iceServers = new ArrayList<>();
        PeerConnection.IceServer server = new PeerConnection.IceServer("stun:bingortc.puppyrobot.com:3478", "", "");
        iceServers.add(server);
        server = new PeerConnection.IceServer("turn:bingortc.puppyrobot.com:3478", "ling", "ling1234");
        iceServers.add(server);
        server = new PeerConnection.IceServer("turn:47.106.13.36:3478", "ling", "ling1234");
        iceServers.add(server);
        return iceServers;
    }

}
